<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>传说中的测试首页</title>
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
</head>
<body>

<div class="page-group">

  <div class="page" id="pa1">
    <header class="bar bar-nav">
      <a class="button button-link button-nav pull-left back" href="" data-transition='slide-out'>
        <span class="icon icon-left"></span>
        返回
      </a>
      <h1 class="title">我的生活</h1>
    </header>
    <nav class="bar bar-tab">
      <a class="tab-item active" href="#">
        <span class="icon icon-home"></span>
        <span class="tab-label">首页</span>
      </a>
      <a class="tab-item" href="#">
        <span class="icon icon-me"></span>
        <span class="tab-label">我</span>
      </a>
      <a class="tab-item" href="#">
        <span class="icon icon-star"></span>
        <span class="tab-label">收藏</span>
      </a>
      <a class="tab-item" href="#">
        <span class="icon icon-settings"></span>
        <span class="tab-label">设置</span>
      </a>
    </nav>

    <div class="content">
      <div class="page-index">
        <div class="card">
          <div valign="bottom" class="card-header color-white no-border">旅途的山</div>
          <div class="card-content">
            <div class="card-content-inner">
              <p class="color-gray">发表于 2015/01/15</p>
              <p>此处是内容...</p>
            </div>
          </div>
          <div class="card-footer">
            <a href="#" class="link">赞</a>
            <a href="#" class="link">更多</a>
          </div>
        </div>
        <div class="card">
          <div valign="bottom" class="card-header color-white no-border">旅途的山</div>
          <div class="card-content">
            <div class="card-content-inner">
              <p class="color-gray">发表于 2015/01/15</p>
              <p>此处是内容...</p>
            </div>
          </div>
          <div class="card-footer">
            <a href="#" class="link">赞</a>
            <a href="#" class="link">更多</a>
          </div>
        </div>

        <!-- vuejs 测试 -->
        <div class="card" id="first">
          <div valign="bottom" class="card-header color-white no-border">{{message}}</div>
          <div class="card-content">
            <div class="card-content-inner">
              <p class="color-gray">发表于 2015/01/15</p>

              <ul>
                <li v-for="todo in todos">
                  {{ todo.text }}
                </li>
              </ul>

            </div>
          </div>
          <div class="card-footer">
            <a href="#" class="link">赞</a>
            <a href="#" class="link">更多</a>
          </div>
        </div>

      </div>
    </div>

  </div>

</div>


<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
<script src="../lib/vue.js"></script>
<script>
  new Vue({
    el:'#first',
    data:{
      message:'hello world',
      todos: [
        { text: 'Learn JavaScript' },
        { text: 'Learn Vue.js' },
        { text: 'Build Something Awesome' }
      ]
    }
  });

  $.init();
</script>
</body>
</html>